package p07.p0721;

/**
 * Created by wy on 7/17/2017.
 */
public class Person {
    String name;
    int age;
   // String country;
      static String country = "china";


    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person(String name, int age, String country) {
        this.name = name;
        this.age = age;
        this.country = country;
    }

    public Person() {
    }

    public void show() {
        System.out.println(name + age + country);
    }
}

class Test {

    public static void main(String[] args) {

        Person person3 = new Person("rrrrr",6666);
        person3.show();


        Person person = new Person("sss", 222, "china");
        // System.out.println(person("sss",222,"ccc"));
        person.show();
/*        person.country = "ddddd";
        person.age = 12131231;
        person.name = "rrrrrr";*/

Person person1 = new Person("qwer",23);

        Person.country = "iiiiiiiiiiiiiiii";
        person1.show();
        person3.show();
        person.show();
    }
}
